-- GENERATED SPELL FOR [Kurzen Shadow Hunter] --


function spell0_979(pUnit, Event) --@Poisoned Shot,n/a--
pUnit:FullCastSpellOnTarget(8806,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_979', 2000, 1)
end

function spell1_979(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_979', 618, 1)
end

function Sorts_979(pUnit, Event)
local choix_sorts_979 = math.random(0, 1)
if choix_sorts_979 == 0 then
pUnit:RegisterEvent('spell0_979', 1, 1)
end
if choix_sorts_979 == 1 then
pUnit:RegisterEvent('spell1_979', 1, 1)
end
end

function mob979_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_979', math.random(1500, 3000), 1)
end

function mob979_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob979_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob979_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(979, 1, 'mob979_Action')
RegisterUnitEvent(979, 2, 'mob979_Leave')
RegisterUnitEvent(979, 3, 'mob979_Kill')
RegisterUnitEvent(979, 4, 'mob979_Die')
